package com.contactbook.web.client;

public class Constants {
	
	/* Menu options */
	public static final String MenuOptionHeight = "25px";
	
	public static final String AccountMenuOption = "My account";
	public static final String ContactsMenuOption = "My contacts";
	public static final String GroupsMenuOption = "My groups";
	
	public static final String AccountMenuOptionTitle = "Manage my account";
	public static final String ContactsMenuOptionTitle = "Manage my contact book";
	public static final String GroupMenuOptionTitle = "Look my groups information";
	
	public static final String LogoutLink = "[ logout ]";
	
	/* Views name */
	public static final String MyAccountViewName = "myAccount";
	public static final String DeleteAccountViewName = "deleteAccount";
	public static final String ListOfContactsViewName = "listOfContacts";
	public static final String ListOfGroupsViewName = "listOfGroups";
	public static final String DeleteContactViewName = "deleteContact";
	public static final String UpdateContactViewName = "addContact";
	public static final String DeleteGroupViewName = "deleteGroup";
	public static final String UpdateGroupViewName = "addGroup";
	public static final String ContactSheetViewName = "ContactSheet";
	public static final String AddGroupViewName = "addGroup";
	public static final String LoginViewName = "login";

	/* Path */
	private static final String ImagePath = "img";	
	
	/* Icons */
	public static String IconSizeConstant = "16px";
	
	public static final String IconGroupPath = ImagePath+"/group.png";
	public static final String IconContactPath = ImagePath+"/contact.png";
	public static final String IconAddGroupPath = ImagePath+"/group_add.png";
	public static final String IconDeleteGroupPath = ImagePath+"/group_delete.png";
	public static final String IconUpdateGroupPath = ImagePath+"/group_edit.png";
	public static final String IconAddContactPath = ImagePath+"/contact_add.png";
	public static final String IconDeleteContactPath = ImagePath+"/contact_delete.png";
	public static final String IconUpdateContactPath = ImagePath+"/contact_edit.png";
	public static final String IconEditPath = ImagePath+"/edit.png";
	public static final String IconDeletePath = ImagePath+"/delete.png";
	
	
	/* All view : Form width */
	public static final String PanelWidgetsStandartWidth = "500px";
	public static final String SmallPanelWidgetsStandartWidth = "350px";
	
	/* List of contacts view : Widgets size */
	public static final String GroupNameHeaderWidth = "282px";
	public static final String ContactNameLabelWidth = "250px";
	public static final String ContactNameLabelHeight = "22px";
	
	/* List of groups view : Widgets size */
	public static final String GroupNameHeaderPanelWidth = "330px";
	
	/* POST session parameters name */
	public static final String SessionParameterGroupId = "groupId";
	public static final String SessionParameterContactId = "contactId";


	public static final String IconDeleteGroupTitle = "Delete this group";
	public static final String IconUpdateGroupTitle = "Update this group";
	
	public static final String IconDeleteContactTitle = "Delete this contact";
	public static final String IconUpdateContactTitle = "Update this contact";


	public static final String GroupWNCNameHeaderWidth = GroupWNCNameHeaderWidth();
	
	private static final String GroupWNCNameHeaderWidth() {
		return String.valueOf((2*Integer.parseInt(IconSizeConstant.split("px")[0])) + Integer.parseInt(GroupNameHeaderWidth.split("px")[0])) + "px";
	}
	
	/* Add contact constants */
	public static final String TAB_TITLE_1 = "Full name";
	public static final String TAB_TITLE_2 = "Details";
	public static final String TAB_TITLE_3 = "Other information";
}
